package com.suncnpap.journal.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.app.util.database.mybatis.Page;
import com.suncnpap.journal.mapper.ReturnJournalMapper;
import com.suncnpap.journal.model.ReturnJournal;
import com.suncnpap.journal.service.ReturnJournalService;

/** 
 * 说明： 期刊归还Service实现类
 * @version
 */
@Service("returnJournalService")
public class ReturnJournalServiceImpl implements ReturnJournalService{

	
	@Autowired
	ReturnJournalMapper returnJournalMapper;
	
	@Override
	public void add(ReturnJournal obj) {
		// TODO Auto-generated method stub
		returnJournalMapper.add(obj);
	}

	@Override
	public void update(ReturnJournal obj) {
		// TODO Auto-generated method stub
		returnJournalMapper.edit(obj);
	}

	@Override
	public void deleteById(String strId) {
		// TODO Auto-generated method stub
		returnJournalMapper.deleteById(strId);
		
	}
	@Override
	public void deleteMore(String[] strIds) {
		// TODO Auto-generated method stub
		returnJournalMapper.deleteMore(strIds);
	}

	@Override
	public Page list(Page page) {
		// TODO Auto-generated method stub
		List<ReturnJournal> list = returnJournalMapper.datalistPage(page);
		page.setDataList(list);
		return page;
	}


	@Override
	public int findCount(Page page) {
		// TODO Auto-generated method stub
		return returnJournalMapper.findCount(page);
	}

	@Override
	public ReturnJournal findById(String strId) {
		// TODO Auto-generated method stub
		return returnJournalMapper.findById(strId);
	}
	
}

